package com.imooc.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by 廖师兄
 * 2016-11-03 23:07
 * @author songjun
 */
@Entity
@Setter
@Getter
@ToString
public class Girl implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String cupSize;

    @Min(value = 18,message = "未成年少女禁止入内!")
    private Integer age;

    @NotNull(message = "金额必传！")
    private BigDecimal amount;

}
